
import requests
from lxml import etree
url = 'https://books.toscrape.com/'
response = requests.get(url)
print(response.status_code)

html = response.text

ehtml = etree.HTML(html)

xtitle = ehtml.xpath("//div[@class='image_container']/a//@src")
print(xtitle)

xtitle = ehtml.xpath("//article[@class='product_pod']/p[1]/@class[1]")
print(xtitle)

xtitle = ehtml.xpath("//article[@class='product_pod']/h3//@title")
print(xtitle)

xtitle = ehtml.xpath("//div[@class='product_price']/p[1]/text()")
print(xtitle)
